<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<?php echo form_tag_for($form, '@turmas') ?>
<table>
    <tfoot>
        <tr>
            
            <td><?php echo link_to('Voltar para Lista', 'turmas') ?>
                &nbsp

                <?php if (!$form->getObject()->isNew()): ?>
                    <?php echo link_to('Deletar', 'turmas_delete', $form->getObject(), array('method' => 'delete', 'confirm' => 'Tem certeza?')) ?>
                <?php endif; ?>
                &nbsp
                <input type="submit" value="Salvar" />
            </td>
            
        </tr>
    </tfoot>
    <tbody>
        <?php echo $form ?>
    </tbody>
</table>
</form>
